package emusic.preview 
{
	import emusic.api.data.AlbumData;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Martin Legris ( http://blog.martinlegris.com )
	 */
	public class AlbumPreviewEvent extends Event
	{
		public static const ALBUM_NOT_FOUND:String = "album_not_found_event";
		public static const ALBUM_FOUND:String = "album_found_event";
		public static const ALBUM_PLAYING:String = "album_playing_event";
		public static const ALBUM_ENDED:String = "album_ended_event";
		public static const ARTIST_FOUND:String = "artist_found_event";
		public static const ARTIST_NOT_FOUND:String = "artist_not_found_event";
		
		protected var _album:AlbumData;
		protected var _artistName:String;
		protected var _albumName:String;
		
		public function get album():AlbumData { return _album; }
		
		public function get artistName():String { return _artistName; }
		public function get albumName():String { return _albumName; }
		
		public function AlbumPreviewEvent(type:String, album:AlbumData, artistName:String = null, albumName:String = null) 
		{
			super(type);
			_album = album;
			_artistName = artistName;
			_albumName = albumName;
		}
	}
}